Integrand size = 35, antiderivative size = 436 \[ \int \frac {\tan ^2(d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \, dx=-\frac {\arctan \left (\frac {\sqrt {a-b+c} \tan (d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}\right )}{2 \sqrt {a-b+c} e}+\frac {\sqrt [4]{a} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}}}{2 \left (\sqrt {a}-\sqrt {c}\right ) \sqrt [4]{c} e \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) \operatorname {EllipticPi}\left (-\frac {\left (\sqrt {a}-\sqrt {c}\right )^2}{4 \sqrt {a} \sqrt {c}},2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}}}{4 \sqrt [4]{a} \left (\sqrt {a}-\sqrt {c}\right ) \sqrt [4]{c} e \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \]
[Out]
Time = 0.41 (sec) , antiderivative size = 436, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {3781, 1333, 1117, 1720} \[ \int \frac {\tan ^2(d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \, dx=-\frac {\arctan \left (\frac {\sqrt {a-b+c} \tan (d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}\right )}{2 e \sqrt {a-b+c}}+\frac {\sqrt [4]{a} \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{2 \sqrt [4]{c} e \left (\sqrt {a}-\sqrt {c}\right ) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}} \operatorname {EllipticPi}\left (-\frac {\left (\sqrt {a}-\sqrt {c}\right )^2}{4 \sqrt {a} \sqrt {c}},2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right )}{4 \sqrt [4]{a} \sqrt [4]{c} e \left (\sqrt {a}-\sqrt {c}\right ) \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \]
[In]
[Out]
Rule 1117
Rule 1333
Rule 1720
Rule 3781
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {x^2}{\left (1+x^2\right ) \sqrt {a+b x^2+c x^4}} \, dx,x,\tan (d+e x)\right )}{e} \\ & = \frac {\sqrt {a} \text {Subst}\left (\int \frac {1}{\sqrt {a+b x^2+c x^4}} \, dx,x,\tan (d+e x)\right )}{\left (\sqrt {a}-\sqrt {c}\right ) e}-\frac {\sqrt {a} \text {Subst}\left (\int \frac {1+\frac {\sqrt {c} x^2}{\sqrt {a}}}{\left (1+x^2\right ) \sqrt {a+b x^2+c x^4}} \, dx,x,\tan (d+e x)\right )}{\left (\sqrt {a}-\sqrt {c}\right ) e} \\ & = -\frac {\arctan \left (\frac {\sqrt {a-b+c} \tan (d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}\right )}{2 \sqrt {a-b+c} e}+\frac {\sqrt [4]{a} \operatorname {EllipticF}\left (2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}}}{2 \left (\sqrt {a}-\sqrt {c}\right ) \sqrt [4]{c} e \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}}-\frac {\left (\sqrt {a}+\sqrt {c}\right ) \operatorname {EllipticPi}\left (-\frac {\left (\sqrt {a}-\sqrt {c}\right )^2}{4 \sqrt {a} \sqrt {c}},2 \arctan \left (\frac {\sqrt [4]{c} \tan (d+e x)}{\sqrt [4]{a}}\right ),\frac {1}{4} \left (2-\frac {b}{\sqrt {a} \sqrt {c}}\right )\right ) \left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right ) \sqrt {\frac {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}{\left (\sqrt {a}+\sqrt {c} \tan ^2(d+e x)\right )^2}}}{4 \sqrt [4]{a} \left (\sqrt {a}-\sqrt {c}\right ) \sqrt [4]{c} e \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 4.11 (sec) , antiderivative size = 311, normalized size of antiderivative = 0.71 \[ \int \frac {\tan ^2(d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \, dx=-\frac {i \left (\operatorname {EllipticF}\left (i \text {arcsinh}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} \tan (d+e x)\right ),\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )-\operatorname {EllipticPi}\left (\frac {b+\sqrt {b^2-4 a c}}{2 c},i \text {arcsinh}\left (\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} \tan (d+e x)\right ),\frac {b+\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}}\right )\right ) \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c \tan ^2(d+e x)}{b+\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c \tan ^2(d+e x)}{b-\sqrt {b^2-4 a c}}}}{\sqrt {2} \sqrt {\frac {c}{b+\sqrt {b^2-4 a c}}} e \sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \]
[In]
[Out]
Time = 0.61 (sec) , antiderivative size = 402, normalized size of antiderivative = 0.92
method | result | size |
derivativedivides | \(\frac {\frac {\sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) \tan \left (e x +d \right )^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) \tan \left (e x +d \right )^{2}}{a}}\, \operatorname {EllipticF}\left (\frac {\tan \left (e x +d \right ) \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )}{4 \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {a +b \tan \left (e x +d \right )^{2}+c \tan \left (e x +d \right )^{4}}}-\frac {\sqrt {2}\, \sqrt {1+\frac {b \tan \left (e x +d \right )^{2}}{2 a}-\frac {\tan \left (e x +d \right )^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {1+\frac {b \tan \left (e x +d \right )^{2}}{2 a}+\frac {\tan \left (e x +d \right )^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \operatorname {EllipticPi}\left (\frac {\tan \left (e x +d \right ) \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, -\frac {2 a}{-b +\sqrt {-4 a c +b^{2}}}, \frac {\sqrt {-\frac {b +\sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {2}}{\sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}\right )}{\sqrt {-\frac {b}{a}+\frac {\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {a +b \tan \left (e x +d \right )^{2}+c \tan \left (e x +d \right )^{4}}}}{e}\) | \(402\) |
default | \(\frac {\frac {\sqrt {2}\, \sqrt {4-\frac {2 \left (-b +\sqrt {-4 a c +b^{2}}\right ) \tan \left (e x +d \right )^{2}}{a}}\, \sqrt {4+\frac {2 \left (b +\sqrt {-4 a c +b^{2}}\right ) \tan \left (e x +d \right )^{2}}{a}}\, \operatorname {EllipticF}\left (\frac {\tan \left (e x +d \right ) \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, \frac {\sqrt {-4+\frac {2 b \left (b +\sqrt {-4 a c +b^{2}}\right )}{a c}}}{2}\right )}{4 \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {a +b \tan \left (e x +d \right )^{2}+c \tan \left (e x +d \right )^{4}}}-\frac {\sqrt {2}\, \sqrt {1+\frac {b \tan \left (e x +d \right )^{2}}{2 a}-\frac {\tan \left (e x +d \right )^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {1+\frac {b \tan \left (e x +d \right )^{2}}{2 a}+\frac {\tan \left (e x +d \right )^{2} \sqrt {-4 a c +b^{2}}}{2 a}}\, \operatorname {EllipticPi}\left (\frac {\tan \left (e x +d \right ) \sqrt {2}\, \sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}{2}, -\frac {2 a}{-b +\sqrt {-4 a c +b^{2}}}, \frac {\sqrt {-\frac {b +\sqrt {-4 a c +b^{2}}}{2 a}}\, \sqrt {2}}{\sqrt {\frac {-b +\sqrt {-4 a c +b^{2}}}{a}}}\right )}{\sqrt {-\frac {b}{a}+\frac {\sqrt {-4 a c +b^{2}}}{a}}\, \sqrt {a +b \tan \left (e x +d \right )^{2}+c \tan \left (e x +d \right )^{4}}}}{e}\) | \(402\) |
[In]
[Out]
\[ \int \frac {\tan ^2(d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \, dx=\int { \frac {\tan \left (e x + d\right )^{2}}{\sqrt {c \tan \left (e x + d\right )^{4} + b \tan \left (e x + d\right )^{2} + a}} \,d x } \]
[In]
[Out]
\[ \int \frac {\tan ^2(d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \, dx=\int \frac {\tan ^{2}{\left (d + e x \right )}}{\sqrt {a + b \tan ^{2}{\left (d + e x \right )} + c \tan ^{4}{\left (d + e x \right )}}}\, dx \]
[In]
[Out]
\[ \int \frac {\tan ^2(d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \, dx=\int { \frac {\tan \left (e x + d\right )^{2}}{\sqrt {c \tan \left (e x + d\right )^{4} + b \tan \left (e x + d\right )^{2} + a}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\tan ^2(d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\tan ^2(d+e x)}{\sqrt {a+b \tan ^2(d+e x)+c \tan ^4(d+e x)}} \, dx=\int \frac {{\mathrm {tan}\left (d+e\,x\right )}^2}{\sqrt {c\,{\mathrm {tan}\left (d+e\,x\right )}^4+b\,{\mathrm {tan}\left (d+e\,x\right )}^2+a}} \,d x \]
[In]
[Out]